//
//  TYFormCell.m
//  TYUIKit_Example
//
//  Created by 谢航宇 on 2023/3/21.
//  Copyright © 2023 谢航宇. All rights reserved.
//

#import "TYFormCell.h"
#import "UIColor+TYColor.h"
#import "Masonry.h"
@implementation TYFormCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (UILabel *)titleLab {
    if (!_titleLab) {
        __weak typeof(self)weakSelf = self;
        _titleLab = [[UILabel alloc]init];
        _titleLab.textColor = [UIColor colorWithHex:0x333333];
        _titleLab.font = [UIFont systemFontOfSize:15 weight:(UIFontWeightMedium)];
        _titleLab.textAlignment = NSTextAlignmentLeft;
        _titleLab.numberOfLines = 1;
        [self addSubview:_titleLab];
        [_titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.top.mas_equalTo(weakSelf);
        }];
    }
    return _titleLab;
}

@end
